#!/bin/bash - 
#===============================================================================
#
#          FILE: groupsend_plot.sh
# 
#         USAGE: ./groupsend_plot.sh 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: YOUR NAME (), 
#  ORGANIZATION: 
#       CREATED: 03.05.2013 12.26.46 EEST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error
echo 'set terminal epslatex color colortext
  set output "refvalues_tcp_2nic_rs.tex"
  set ylabel "Network total speed (Mb/s)"
  set xlabel "Time(s)"
  set key right bottom
  f(x) = mean_y
  fit f(x) "data/refvalues_tcp_16_streams_2nic_rs" u 1:2 via mean_y
  set xrange [0:120]
  set label 3 gprintf("Mean(16) = %gMb/s", mean_y) at  57,10000
   plot "data/refvalues_tcp_2_streams_2nic_rs" u 1:2 title "2 streams"  w l, \
   "data/refvalues_tcp_4_streams_2nic_rs" u 1:2 title "4 streams"  w l, \
   "data/refvalues_tcp_8_streams_2nic_rs" u 1:2 title "8 streams"  w l, \
   "data/refvalues_tcp_16_streams_2nic_rs" u 1:2 title "16 streams"  w l ' |gnuplot -persist

